package test;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.List;

import beanAction.RecipeManagerBean;

import db.MySQLSingleton;

import modele.beanEntity.Comment;
import modele.beanEntity.Recipe;
import modele.beanEntity.User;
import modele.mapper.CommentMapper;
import modele.mapper.RecipeMapper;
import modele.mapper.UserMapper;




public class main {
	
	/**
	 * @param args
	 * @param User 
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		RecipeManagerBean r = new RecipeManagerBean();
		
		
		/*try {

			UserMapper um = new UserMapper();
			List<User> l = um.getUserList();

			
			for( User u : l){
				System.out.println(u);
				u.setFirstName("toto");
				um.createUser(u);
				
			}
			
			System.out.println("\nApres modif :");
			l=um.getUserList();
			for( User u : l){
				System.out.println(u);
			}
			
			RecipeMapper rm = new RecipeMapper();
			List<String> cookTypes = rm.getAllCookType();
			for(String s: cookTypes) {
				System.out.println(s);
			}
			
			List<Recipe> searchRecResults = rm.searchRecipe(180, 3, "salad", 4);
			for(Recipe r: searchRecResults) {
				System.out.println(r);
			}
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		*/
	}

}
